# 公共方法
"""
print()
id()
input()
type()
id()
len()
oct()
hex()
chr()
ord()
isinstance() 类型判断
"""

lst = [1, 3, 5, 73, 7, 80, 53, 6, 8, 32, 79, 33]

print(max(lst))  # 最大值
print(min(lst))  # 最小值
print(sum(lst))  # 求和
print(abs(-1))  # 绝对值

tup = (1, 9, 8, 4, 5, 6)

result = sorted(tup, reverse=True)  # 倒叙
print(result)
result = sorted(tup)
print(result)

result = chr(96)  # AscII 码
print(result)
result = chr(65)
print(result)

result = ord('a')  # AscII 码
print(result)
result = ord('z')
print(result)
result = ord('A')
print(result)
result = ord('Z')

print(result)

# 符号 + - * & |

# + （合并）: 支持字符串、列表、元组
result = 'hello' + 'world'
print(result)
result = [1, 2, 3, 4] + [5, 6, 7]
print(result)
result = (1, 2, 3, 4) + (1, 2, 3, 4)
print(result)
# * （复制）: 支持字符串、列表、元组
result = [1, 2] * 4
print(result)
# - & | 只能交集、并集、差集

# in /not in : 元素是否存在，字符串、列表、元组、字典(判断key是否存在)
